<!DOCTYPE html>
<html lang="en">
<head>
	<meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1">
	<meta charset="UTF-8">
	<title>兑换记录</title>
	<meta name="description" content="">
	<meta name="keywords" content="">
	<meta name="viewport" content="initial-scale=1, width=device-width, maximum-scale=1, user-scalable=no">
	<meta name="format-detection" content="telephone=no,email=no,adress=no" />
	<meta name="apple-mobile-web-app-capable" content="yes" />  
	<meta name="apple-mobile-web-app-status-bar-style" content="black">
	<link rel="stylesheet" href="{THEME_PATH}styles/swiper.min.css">
	<link rel="stylesheet" href="{THEME_PATH}styles/reset.css">
	<link rel="stylesheet" href="{THEME_PATH}styles/common.css">
	<link rel="stylesheet" href="{THEME_PATH}styles/style.css">	
</head>
<body>
	<!-- S header -->
	<header>
		<a href="/index.php?m=user&c=goods&a=index" class="headerL iconfont">&#xe69f;</a>
		<h1>兑换记录</h1>
	</header>
	<!-- E header -->
	
	<ul class="record-conversion-wrap">
		<?php  if($records) :?>
			<?php foreach($records as $key =>$value) : ?>
			<li>
				<a href="/index.php?m=user&c=goods&a=records_detail&id=<?php echo $value['id']; ?>" class="flex flex-pack-justify">
					<div>
						<h2 class="convert"><?php echo $value['goods_remarks']; ?></h2>
						<p class="tel"><?php echo $value['username'] ?></p>
					</div>
					<div class="flex">
						<dl>
							<dt class="condition"><?php echo ($value['status'] == 1) ? '等待审核' : (($value['status'] == 2) ? '成功' : '审核失败') ;  ?></dt>
							<dd class="time"><?php echo $value['update_time']; ?></dd>
						</dl>
						<i class="iconfont">&#xe6a0;</i>
					</div>
				</a>
			</li>
			<?php endforeach ?>
		<?php endif ?>
		


		<!-- <li>
			<a href="" class="flex flex-pack-justify">
				<div>
					<h2 class="convert">50元话费</h2>
					<p class="tel">1863226322</p>
				</div>
				<div class="flex">
					<dl>
						<dt class="condition">充值成功</dt>
						<dd class="time">2018/9/18  13：58</dd>
					</dl>
					<i class="iconfont">&#xe6a0;</i>
				</div>
			</a>
		</li> -->
	</ul>
	<p class="hint">没有更多了</p>
</body>